import request from "@/utils/request";

// 查询企业财务信息列表
export function listComFinancialYear(query) {
  return request({
    url: "/basic-api/company/comFinancialYear/com/list",
    method: "get",
    params: query,
  });
}

// 查询企业财务信息详细
export function getComFinancialYear(id) {
  return request({
    url: "/basic-api/company/comFinancialYear/com/" + id,
    method: "get",
  });
}

// 新增企业财务信息
export function addComFinancialYear(data) {
  return request({
    url: "/basic-api/company/comFinancialYear/com",
    method: "post",
    data: data,
  });
}

// 修改企业财务信息
export function updateComFinancialYear(data) {
  return request({
    url: "/basic-api/company/comFinancialYear/com",
    method: "put",
    data: data,
  });
}

// 删除企业财务信息
export function delComFinancialYear(id) {
  return request({
    url: "/basic-api/company/comFinancialYear/com/" + id,
    method: "delete",
  });
}
